<?php

$request = xmlrpc_encode_request("get_items_by_cat", array(1,24));
$context = stream_context_create(array('http' => array(
    'method' => "POST",
    'header' => "Content-Type: text/xml\r\nUser-Agent: PHPRPC/1.0\r\n",
    'content' => $request
)));

$server = 'http://localhost/sunshopwebsvc/xmlrpc.php';


$file = file_get_contents($server, false, $context);

$response = xmlrpc_decode($file);
print_r($response);

?>